package com.gitee.huanminabc.db_freedom.segments;

import com.gitee.huanminabc.db_freedom.utils.SqlFunction;

/**
 * 特殊实现类
 * @param <T>
 * @param <Children>
 */
public abstract class SqlSpecialImplSegments<T, Children extends SqlRelationImplSegments<T, Children>>    extends SqlRelationImplSegments<T, Children> implements SqlSpecialSegments<Children, T, SqlFunction<T, ?>> {
    public SqlSpecialImplSegments() {
    }
    public SqlSpecialImplSegments(Class<?> entityClass, com.gitee.huanminabc.db_freedom.wrapper.SQL sql) {
        super(entityClass, sql);
    }

    public Children DISTINCT() {
        SQL().append(" DISTINCT ");
        return typedThis;
    }

    @Override
    public Children LEFT_BRACKET() {
        SQL().append(" ( ");
        return typedThis;
    }

    @Override
    public Children RIGHT_BRACKET() {
        SQL().append(" ) ");
        return typedThis;
    }

}
